package com.vca.common.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.HashMap;

@Data
public class TemplatePublicMessage {
    @ApiModelProperty(value = "小程序的openID")
    private String touser;

    @ApiModelProperty(value = "公众号消息")
    private MpTemplateMsg mp_template_msg;


    @Data
    public static class MpTemplateMsg {
        @ApiModelProperty(value = "公众号APPID")
        private String appid;

        @ApiModelProperty(value = "模板ID")
        private String template_id;

        @ApiModelProperty(value = "公众号模板消息所要跳转的url")
        private String url;

        @ApiModelProperty(value = "公众号模板消息所要跳转的小程序")
        private MiniProgram miniprogram;

        @Data
        public static class MiniProgram {
            @ApiModelProperty(value = "小程序APPID")
            private String appid;

            @ApiModelProperty(value = "小程序页面路径")
            private String pagepath;
        }

        @ApiModelProperty(value = "模板消息的数据")
        private HashMap<String, Object> data;
    }
}
